package com.lianxueda.drawing.domain.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@NoArgsConstructor
@TableName(value ="schedules")
public class Schedules implements  java.io.Serializable{
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 课时名称
     */
    private String name;
    /**
     * 课时上课时间
     */
    @TableField(value = "start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    /**
     * 课时下课时间
     */
    @TableField(value = "end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;


    @TableField(value = "location")
    private String location;

    @TableField(value = "course_id")
    private Integer courseId;


    @TableLogic(value = "0",delval = "1")
    private Integer deleted;

    @TableField(value = "notifi_status")
    private Integer notifiStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    private LocalDateTime createDate;

    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private final static long serialVersionUID = 1L;

}
